/*
 * Copyright (c) 2018 maoyan.com
 * All rights reserved.
 *
 */
package com.darren.archive.repository;

import com.darren.archive.entity.SysDictionary;
import com.darren.framework.repository.GenericRepository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 系统字典表操作持久层
 *
 * @author darren
 * @created 2019/11/21
 */
public interface SysDictionaryRepository extends GenericRepository<SysDictionary, Long> {

    Page<SysDictionary> findByCategoryNameLikeOrderByCategoryNameAscItemSequenceAsc(String categoryName, Pageable pageable);

    List<SysDictionary> findByCategoryCodeOrderByItemSequenceAsc(String categoryCode);


}

